
<?php
	session_start();
	require_once("include/utils.php");
	require_once("include/scripts.js");
	require_once("include/classes/clss_imp.php");
	include("include/login_check.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
	<link href="styles/template.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="980" border="0" align="center">
  <tr>
    <td class = "header">
   	  <div class = "logo"><img src="images/CP2013group4_logo.png" alt="logo"/></div>
	  <p>
      </p>
	  <p><a href= "home.php"><img src="images/home.png" width="28" height="27" /></a>
	    <a href="inventory.php">inventory</a>
	    <a href="#">product</a>
    <a href="logout.php">logout</a></p></td>
  </tr>
  <tr>
    <td>
     	<table id = "left_bar">
		  <tr>
		    <td class="p_head" colspan="2">User Profile</td>
	      </tr>
          <tr>
          <td class= "p_body">UserID:</td>
          <td><?php echo unserialize($_SESSION['user'])->_get_usrId(); ?></td>
          </tr>
          <tr>
          <td class= "p_body">UserName:</td>
          <td><?php echo unserialize($_SESSION['user'])->_get_usrName(); ?></td>
          </tr>
    	</table>
		<!--main_content-->
      	<div id = "main_content">

    		<h1 class = "body">Home page</h1>
			<h2> Welcome back, <span class="ss"><?php echo unserialize($_SESSION['user'])->_get_usrName(); ?></span> </h2>
    	</div>
        <!--main_content-->
   </td>
  </tr>
<?php
	include("include/footer.php");
?>
</table>
</body>
</html>
